import Vue from 'vue'
import VueRouter from 'vue-router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'

Vue.config.productionTip = false
Vue.use(VueRouter);
Vue.use(ElementUI);

import StudentList from './components/Students/StudentList'
import TeacherList from './components/Teachers/TeacherList'
import Index from './components/Index/Index'
import Login from './components/Login/Login'

var router = new VueRouter({
    routes:[
        {path:"/",redirect:'/login'},
        {path:"/index",component:Index},
        {path:"/login",component:Login},
        {path:"/student",component:StudentList},
        {path:"/student/:id",component:StudentList},
        {path:"/teacher",component:TeacherList}
    ]
})

new Vue({
  render: h => h(App),
    router
}).$mount('#app')
